﻿using SageKing.IceRPC.Features;
using SageKing.Studio.Pages.Base;
using SageKing.Studio.Pages.DictType.component;
using SageKing.Studio.Pages.SageKingMessage.component;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SageKing.Extensions;

public static class ModuleExtensions
{
    public static IServiceCollection AddModalCRUD(this IServiceCollection services)
    {
        services.AddTransient<DictTypeEditModal>();
        services.AddTransient<DictDataEditModal>();
        services.AddTransient<ImportDataAttPageModal>();
        services.AddTransient<ImportFromDBAttPageModal>();
        services.AddTransient<SysSageKingMessageEditModal>();
        services.AddTransient<SysSageKingMessageAttributeEditModal>();

        services.AddTransient(typeof(CodeEditBoxModal<,>));
        services.AddTransient(typeof(SageKingMessageFormEditModal<,>));
        return services;
    }
}
